package com.mall.mapper;

import com.mall.bean.SystemPermission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SystemPermissionMapper {
    List<SystemPermission> getPermissionList();

    List<SystemPermission> getPermissionListByType();

    SystemPermission findPermission(SystemPermission systemPermission);

    SystemPermission findPermissionById(String id);

    void insertPermission(SystemPermission systemPermission);

    void insertPermissionSelective(SystemPermission systemPermission);

    void updatePermission(SystemPermission systemPermission);

    void deletePermission(String id);

    void deleteAllPermission(@Param("ids")String[] ids);

    List<SystemPermission> getUserPermission(String user_id);
}
